import type { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/login",
    name: "Login",
    component: () =>
      import(/* webpackChunkName: "basic" */ "@/views/login/Login.vue"),
    meta: {
      title: "登录",
      showInMenu: false,
    },
  },
  {
    path: "/404",
    name: "404",
    component: () =>
      import(/* webpackChunkName: "basic" */ "@/views/error/404.vue"),
    meta: {
      title: "404",
      showInMenu: false,
    },
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: () =>
      import(/* webpackChunkName: "basic" */ "@/views/error/404.vue"),
    meta: {
      title: "404",
      showInMenu: false,
    },
  },
];

export default routes;
